package com.xuanyuan.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;

/*
职位实体类
 */
@Data
public class Post {
    private Integer id;

    @NotBlank(message = "职位名称不能为空")
    @Size(min = 0, max = 30, message = "职位名称长度不能超过30个字符")
    private String postName;

    private String status;

    @Size(min = 0, max = 500, message = "备注长度不能超过500个字符")
    private String remark;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date updateTime;

}